package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HttpClientMapper;
import com.ruoyi.system.domain.HttpClient;
import com.ruoyi.system.service.IHttpClientService;

/**
 * HTTP客户端参数Service业务层处理
 * 
 * @author ZYT
 * @date 2020-08-28
 */
@Service
public class HttpClientServiceImpl implements IHttpClientService 
{
    @Autowired
    private HttpClientMapper httpClientMapper;

    /**
     * 查询HTTP客户端参数
     * 
     * @param id HTTP客户端参数ID
     * @return HTTP客户端参数
     */
    @Override
    public HttpClient selectHttpClientById(Long id)
    {
        return httpClientMapper.selectHttpClientById(id);
    }

    /**
     * 查询HTTP客户端参数列表
     * 
     * @param httpClient HTTP客户端参数
     * @return HTTP客户端参数
     */
    @Override
    public List<HttpClient> selectHttpClientList(HttpClient httpClient)
    {
        return httpClientMapper.selectHttpClientList(httpClient);
    }

    /**
     * 新增HTTP客户端参数
     * 
     * @param httpClient HTTP客户端参数
     * @return 结果
     */
    @Override
    public int insertHttpClient(HttpClient httpClient)
    {
        return httpClientMapper.insertHttpClient(httpClient);
    }

    /**
     * 修改HTTP客户端参数
     * 
     * @param httpClient HTTP客户端参数
     * @return 结果
     */
    @Override
    public int updateHttpClient(HttpClient httpClient)
    {
        return httpClientMapper.updateHttpClient(httpClient);
    }

    /**
     * 批量删除HTTP客户端参数
     * 
     * @param ids 需要删除的HTTP客户端参数ID
     * @return 结果
     */
    @Override
    public int deleteHttpClientByIds(Long[] ids)
    {
        return httpClientMapper.deleteHttpClientByIds(ids);
    }

    /**
     * 删除HTTP客户端参数信息
     * 
     * @param id HTTP客户端参数ID
     * @return 结果
     */
    @Override
    public int deleteHttpClientById(Long id)
    {
        return httpClientMapper.deleteHttpClientById(id);
    }
}
